from django.shortcuts import render

# Create your views here.
from rest_framework.generics import ListCreateAPIView,RetrieveDestroyAPIView,RetrieveUpdateDestroyAPIView
from .models import ProCityArea
from .serializers import ProCityAreaSer
class ProCityAreaAPIView(ListCreateAPIView):
    queryset = ProCityArea.objects.all()
    serializer_class = ProCityAreaSer

class ProCityAreaDetial(RetrieveUpdateDestroyAPIView):
    queryset = ProCityArea.objects.all()
    serializer_class = ProCityAreaSer